<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
    div{
        width:300px;
        height:1000px;
    }
    .b1{
        background-image: url(../img/1.jpg);
        background-attachment:scroll;
        background-repeat:no-repeat;
        background-color: red;
    } 
    .b2{
        background-image: url(../img/2.jpg);
        background-attachment:scroll;
        background-repeat:no-repeat;
        background-color: yellow;
    } 
</style>
</head>
<body>
    <div class="b1"></div>
    <div class="b2"></div>
</body>
</html>